#ifndef CIRCLEITEM_H
#define CIRCLEITEM_H

#include <QObject>
#include <QWidget>
#include <QGraphicsEllipseItem>

class QGraphicsScene;
class PadGraphicsView;

class CircleItem : public QObject, public QGraphicsEllipseItem
{
    Q_OBJECT
public:
    explicit CircleItem(float cx, float cy, float radius, QGraphicsScene *scene, PadGraphicsView *parent = nullptr);

protected:
    float x, y, r;
    QGraphicsScene *parentScene;



    void adjustRect();
signals:
    void deleteItSignal(QGraphicsItem* );
public slots:
    void getSmaller();
};

#endif // CIRCLEITEM_H
